﻿@model ElingOA6_Admin_DSJCJ.Model.Entity
<table class="tableFrom">
    <tr>
        <th width="15%">
            E-Mail服务器:</th>
        <td>
            @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "FSmtpHost";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
                   settings.Text = Model.FSmtpHost;
               }).GetHtml()
        </td>
    </tr>
    <tr>
        <th width="15%">
            E-Mail账号:</th>
        <td>
            @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "FSmtpAccount";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
                   settings.Text = Model.FSmtpAccount;
               }).GetHtml()
        </td>
    </tr>
    <tr>
        <th width="15%">
            E-Mail密码:</th>
        <td>
            @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "FSmtpPassword";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
                   settings.Text = Model.FSmtpPassword;
               }).GetHtml()
        </td>
    </tr>
    <tr>
        <th width="15%">
            端口号(默认25): </th>
        <td>
            @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "FSmtpPort";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
                   settings.Text = Model.FSmtpPort.ToString();
               }).GetHtml()
        </td>
    </tr>
    <tr>
        <th width="15%">
            安全连接验证: </th>
        <td>
            @Html.DevExpress().CheckBox(settings =>
               {
                   settings.Name = "FIsSsl";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(70);
                   if (Model.FIsSsl.HasValue)
                   {
                       settings.Checked = Model.FIsSsl.Value == 1 ? true : false;
                   }
                   else
                   {
                       settings.Checked = false;
                   }

               }).GetHtml()
        </td>
    </tr>
</table>
